2023年2月15日 — ... force delete), you must use git branch -D : Click to Copy. git branch -D branch-to-delete. To delete a remote branch, use git push --delete .
The -D option stands for --delete --force , which deletes the branch regardless of its push and merge status, so be careful using this one! Delete a remote ...
2016年12月29日 — You can force-delete a branch with the following command: git branch -D test. By replacing -d with -D , you are telling git to delete the ...
In case you are using the Tower Git client, you can simply right-click any branch item in the sidebar and choose the Delete… option to get rid of it. But even ...
$ git branch -D <local-branch>. This will force deletion of the branch, even if it contains unmerged / unpushed commits. It goes without saying: please be ...
2020年1月2日 — Use -D instead if you want to force the branch to be deleted, even if it hasn't been pushed or merged yet. The branch is now deleted locally.
2023年8月30日 — Steps to delete a local Git branch · Open a Git BASH or a command prompt in the root of your Git repository. · If necessary, use the git switch or ...
... delete --force instead of -d . This will delete the branch regardless of its merge status. Deleting remote branches. To delete a remote branch, you can't use ...